package spring.batch.parentAbstract;


import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.StepExecutionListener;

/**
 * @Author: huhx
 * @Date: 2017-11-02 上午 9:17
 */
public class ParentStepListener implements StepExecutionListener {
    @Override
    public void beforeStep(StepExecution stepExecution) {
        System.out.println("before step.");
    }

    @Override
    public ExitStatus afterStep(StepExecution stepExecution) {
        System.out.println("after step.");
        return ExitStatus.COMPLETED;
    }
}
